package com.wenhuang.chatgptopen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wenhuang.chatgptopen.pojo.Fans;
import com.wenhuang.chatgptopen.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 *@Time：2023/6/3
 *@Author：Jelly
 */
@Service
public interface FansService extends IService<Fans> {

    //通过userId和FansId向数据库添加粉丝列表
    Integer addFans(Fans fans);
    //通过userId和FansId向数据库删除粉丝关联
    Integer deleteFans(Fans fans);
    //功能三：获取好友链接
    List<User> getFans(Fans fans);
    //功能四：查询是否关注该用户（通过userID和fansId）
    Integer getFollowed(Fans fans);
}
